package com.example.www.Entity;

import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.annotations.InsertProvider;
import org.springframework.stereotype.Service;

import java.util.Date;

@Getter
@Setter
public class Project {
    private String email;
    private String phone;
    private String name;
    private String address;
    private Date beginDate;
    private Date endDate;
    private int type;
    private String notes;
    @Override
    public String toString(){
        String type;
        if(this.type==0){
            type="拍照";
        }else{
            type="拍摄短片";
        }
        return "电子邮件："+email
                +"\n电话："+phone
                +"\n甲方姓名："+name
                +"\n地址："+address
                +"\n开始日期："+beginDate.toString()
                +"\n结束日期"+endDate.toString()
                +"\n类型"+type
                +"\n备注"+notes;
    }
}
